package com.tsing.basic.vo.req;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author TheTsing
 * @create 2021-03-30 0:25
 */
@Data
public class UpdatePasswordReqVo {

    @NotBlank(message = "新密码不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9\\S]{3,16}$", message = "密码不合法(3-16位，允许字母数字特殊字符，不能包含空白字符)")
    private String newPassword;

    @NotBlank(message = "密码凭证不能为空")
    private String uuid;

}
